<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="sale-left">
    <%--<div class="sortby clearfix sortby-top-v2" id="filtersort">
        <span>找到<h1>武汉二手房</h1><strong>150121</strong>套</span>
        <span class="sort-con">排序：
            <a class="fst cur" href="#">默认</a>
            <a class="down" href="#">面积</a>
            <a class="up" href="#">价格</a>
            <a class="down" href="#">最新</a>
        </span>
    </div>--%>
    <ul id="house-list" class="house-list">
        <c:forEach items="${pager.records}" var="goods" varStatus="status">
            <li <c:if test="${status.first}">class="fst-li"</c:if> data-goods-id="${goods.id}">
                <img src="${myfn:mainImg(goods.id)}">
                <div class="house-details">
                    <div class="house-title">
                        <a title="${goods.name}"
                           href="${ctx}/detail.htm?id=${goods.id}"
                           target="_blank" class="">
                                ${goods.name}</a>
                        <i class="icon-dt">多图</i></div>
                    <div>
                        <span>${goods.housesize}平方米</span><em>|</em>
                        <span>${goods.room}室${goods.hall}厅</span><em>|</em>
                        <span>${goods.housefloor}层</span><em>|</em>
                        <span>朝向:${goods.orientation}</span><em>|</em>
                        <span>${goods.decorate}</span>
                    </div>

                    <div>
                        <span class="comm-address">
                          ${goods.community_name} &nbsp;&nbsp;${myfn:address(goods.area_id)}
                            <%--[武昌-积玉桥&nbsp;新河街新生路近友谊大道 ]--%>
                        </span>
                    </div>
                    <div class="details-bottom">
                       <%-- <span class="broker-name">王键</span>
                        <span>地铁房</span>--%>
                    </div>

                </div>

                <!-- price -->
                <div class="pro-price">
                    <span class="price-det">
                       <strong>${goods.price}</strong>万<br>
                    </span>
                    <div class="fcj">
                    </div>
                </div>
            </li>
        </c:forEach>
    </ul>
    <div class="multi-page">
        <c:if test="${pager.totalRecord>0}">
            <jsp:include page="/common/ui/pagerUI.jsp">
                <jsp:param name="pageNo" value="${pager.pageNo}"/>
                <jsp:param name="pageCount" value="${pager.pageCount}"/>
                <jsp:param name="total" value="${pager.totalRecord}"/>
                <jsp:param name="callback" value="callback"/>
            </jsp:include>
        </c:if>

        <c:if test="${pager.totalRecord<=0}">
            暂无数据！
        </c:if>
        <script>
            function callback(pageNo){
                alert(pageNo);
            }
        </script>
    </div>
</div>